﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Devices;
using BCL.BaseLib;
using BCL.BaseLib.Basics;
using System.Windows.Forms;
namespace DevicesView.Logic.Test
{
    public class CommandLogic:ICustom
    {
        ResultLogic rl = new ResultLogic();

        private void Device_CommandCompleted(Devices.Command sender, Devices.Result e)
        {
            rl.AddCompleted(e);
        }

        public bool FunctionInvoke(FunctionEntity fe)
        {
            Devices.DevicesCollection.StartAll();
            Devices.DevicesCollection.CommandCompleted += Device_CommandCompleted;
            return true;
        }

    }
}
